package com.wanxi.classloader;

import java.io.InputStream;

public class MyLoader {
    private StudentService studentService = new StudentService();

    public int add(Student student) {
        return studentService.add(student);
    }
    public int update(Student student) {
        return studentService.add(student);
    }
    public int delete(Student student) {
        return studentService.add(student);
    }
    public int findById(Student student) {
        return studentService.add(student);
    }
    public int findAll(Student student) {
        return studentService.add(student);
    }

    public static void main(String[] args) {
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        System.out.println(systemClassLoader);
        ClassLoader platFrom = systemClassLoader.getParent();
        System.out.println(platFrom);
        ClassLoader bootStrap = platFrom.getParent();
        System.out.println(bootStrap);
        InputStream resourceAsStream = systemClassLoader.getResourceAsStream("");

//        resourceAsStream.read();
    }
}
